// 全局过滤器
import Vue from 'vue'

import request from '../utils/request.js'
Vue.filter( 'imgUrl', val => val.indexOf( 'http' ) === -1 ? request.defaults.baseURL + val : val )

import moment from 'moment'
Vue.filter( 'formatDate', val => moment( val ).format( 'YYYY-MM-DD  hh:mm:ss' ) )

Vue.filter( 'trimText', val => val.trim() )
